<link type="text/css" rel="stylesheet" href="<?php echo $this->basePath('public/css/dbblack/css/product.css'); ?>" />
<link type="text/css" rel="stylesheet" href="<?php echo $this->basePath('public/css/dbblack/css/ucenter.css'); ?>" />
<div class="container clearfix">
    <?php echo $this->partial('shopfront/home/left_menu.phtml'); ?>
    <div class="clearfix uc-content">
        <h1 class="title"><span><?php echo $this->translate('商品咨询'); ?>：</span></h1>
        <?php if ($this->ask_list->getTotalItemCount() > 0) { ?>
        <div class="tab-body ucenter">
            <div class="clearfix">
                <?php foreach ($this->ask_list as $ask_value) { ?>
                    <div class="page-content consult-item">
                    <div class="consult-q">
                        <div class="head">
                            <img  src="<?php echo $this->basePath($this->frontwebsite()->getUserSession('user_avatar')); ?>" style="width:80px;height:80px;">
                            <strong><?php echo $this->translate('我'); ?></strong>
                            <i class="arrow"><b></b></i>
                        </div>
                        <div class="consult-content">
                            <p class="title"  style="border-bottom: 1px solid #e4e4e4;"><?php echo $this->translate('商品名称'); ?>：<?php echo $this->escapeHtml($ask_value['goods_name']); ?></p>
                            <?php echo $this->translate('咨询内容'); ?>：<?php echo $this->escapeHtml($ask_value['ask_content']); ?>
                            <p class="tr"><?php echo date('Y-m-d H:i:s',$ask_value['ask_time']); ?></p>
                        </div>
                    </div>
                        <?php if ($ask_value['reply_ask_content'] != '') { ?>
                    <div class="consult-a ucenter-a" >
                        <div class="head">
                            <img src="<?php echo $this->basePath('public/css/dbblack/img/no-img.png'); ?>" width="80" height="80">
                            <strong><?php echo $this->translate('商城客服'); ?></strong>
                            <i class="arrow"><b></b></i>
                        </div>
                        <div class="consult-content"><?php echo $this->escapeHtml($ask_value['reply_ask_content']); ?>
                            <p class="tl"><?php echo date("Y-m-d H:i",$ask_value['reply_ask_time']); ?></p>
                        </div>
                    </div>
                        <?php } ?>
                </div>
                <?php } ?>
                <div class="page-nav"><?php echo ( count($this->ask_list) > 0 ) ? $this->paginationControl($this->ask_list, 'Sliding', 'site/dbpage',array('page_url'=>$this->url('fronthome/default', array('action'=>'goodsask')))) : ""; ?></div>
            </div>
        </div>
        <?php } else echo $this->translate('暂无商品咨询！'); ?>
    </div>
</div>
